import com.lucastex.grails.fileuploader.UFile
// 教师基本信息
class TeacherInfo {
    String enname //英文名字 
    String address // 地址
    String post // 邮编
    String tel //电话
    String email // email 
    String qq //QQ
    UFile avatar //头像
    String interest // 兴趣爱好
    String introduce //自我评价

    static mapping = {
       table 'xedu_teacherinfo'
    }

    static constraints = {
        enname(size: 1..50)
        avatar(nullable:true)
        tel(size: 1..20)
        email(size: 1..150)
        address(size: 1..250)
        post(size: 1..50)
        qq(size: 1..20)
        interest(size: 1..1000)
        introduce(size: 1..1000)
    }

    String toString() {
        "${teacher.name}:${teacher.enname}"
    }
}
